class env:
	def GET(self):
		return str(web.ctx['env'])

class query:
	def GET(self):
		return web.ctx.query
		
class redirect:
	def GET(self):
		raise web.seeother('/other_path')
		
class headers:
	def GET(self):
		web.header('Custom-Head', 'Custom-Values')
		return str(web.ctx.headers)
		
class cookie:
	def GET(self):
		web.setcookie('server', 'web.py')
		return str(web.cookies())


{
	'SERVER_SOFTWARE': 'CherryPy/3.2.0 Server', 
	'SCRIPT_NAME': '', 
	'ACTUAL_SERVER_PROTOCOL': 'HTTP/1.1', 
	'REQUEST_METHOD': 'GET', 
	'PATH_INFO': '/',
	'SERVER_PROTOCOL': 'HTTP/1.1', 
	'QUERY_STRING': '', 
	'HTTP_USER_AGENT': 'curl/7.27.0', 
	'REMOTE_PORT': '20568', 
	'SERVER_NAME': 'localhost', 
	'REMOTE_ADDR': '127.0.0.1', 
	'wsgi.url_scheme': 'http', 
	'SERVER_PORT': '80', 
	'wsgi.input': <web.wsgiserver.KnownLengthRFile object at 0x02276A50>, 
	'HTTP_HOST': '127.0.0.1', 
	'wsgi.multithread': True, 
	'REQUEST_URI': '/', 
	'HTTP_ACCEPT': '*/*', 
	'wsgi.version': (1, 0), 
	'wsgi.run_once': False, 
	'wsgi.errors': <open file '<stderr>', mode 'w' at 0x019930D0>, 
	'wsgi.multiprocess': False
}